package vip.yeee.memoo.base.swagger.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import vip.yeee.memoo.base.swagger.filter.ResponseModifyFilter;
import org.springframework.context.annotation.Configuration;

/**
 * description......
 *
 * @author yeeee
 * @since 2025/7/25 17:53
 */
@Configuration
public class FilterConfig {
    @Bean
    public FilterRegistrationBean<ResponseModifyFilter> logFilter() {
        FilterRegistrationBean<ResponseModifyFilter> bean = new FilterRegistrationBean<>();
        bean.setFilter(new ResponseModifyFilter());
        bean.addUrlPatterns("/v3/api-docs", "/v3/api-docs/*");
        return bean;
    }
}

